<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本插值</title>
</head>
<body>
<div id="div">
   <div>{{msg}}</div>
   <div v-html="msg"></div>
   <div v-text="msg"></div>
</div>

</body>
<script src="js/vue.js"></script>
<script>
   new Vue({
       el: "#div",
      data:{
           msg:"<h1>Hello Vue</h1>"
       }
   })
</script>
</html>